#ifndef PREDICTALGORITHM_H
#define PREDICTALGORITHM_H

#include "abstractalgorithm.h"
#include <QProcess>
struct PredictParam;

class PredictAlgorithm : public AbstractAlgorithm
{
    Q_OBJECT
    void run()Q_DECL_OVERRIDE;
public:
    PredictAlgorithm(PredictParam *param, QObject *parent = 0);

protected slots:
    void on_Svm_Finished(int code);
    void on_Nstage_Finished(int code);

private:
    void prepareSvmParam();
    void prepareNstageParam();

    PredictParam *m_param;
    bool svmOk;
    bool nstageOk;
};

#endif // PREDICTALGORITHM_H
